<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2017/3/20
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新用户注册</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="../static/common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="../static/common/bootstrap/css/bootstrap.css" media="all">
    <link rel="stylesheet" type="text/css" href="../static/html/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="../static/html/admin/css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
    <div class="larry-personal">
        <header class="larry-personal-tit larry-personal-tit-new-rig">
            <span>新用户注册</span>
        </header><!-- /header -->

        <div class="larry-personal-body clearfix">
            <form class="layui-form col-lg-5"  action="/user/register"  method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">账号</label>
                    <div class="layui-input-block">
                        <input type="text"  autocomplete="off"  class="layui-input " placeholder="请输入用户名"  name = "username">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户属性</label>
                    <div class="layui-input-block">
                        <select name="usertype" lay-filter="aihao">
                            <option value="1">教师</option>
                            <option value="2" selected="selected">学生</option>
                            <option value="3">行政管理员</option>
                            <option value="4">企业管理员</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-block">
                        <input type="password" placeholder="密码" class="layui-input" name = "password">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">确认密码</label>
                    <div class="layui-input-block">
                        <input type="password" placeholder="密码" class="layui-input" name = "checkPassword">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">性别</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="1" title="男"><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>男</span></div>
                        <input type="radio" name="sex" value="2" title="女"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>女</span></div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type = "submit" id="parentIframe"class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
<script type="text/javascript" src="../static/common/jquery-3.2.1.js"></script>
<script type="text/javascript" src="../static/common/layui/layui.js"></script>
<script>
    layui.use(['form','jquery','layer'],function () {
       var form = layui.form(),
           layer = layui.layer,
           $ = layui.jquery;

        $('#parentIframe').on('click', function(){
            layer.open({
                title: '完善信息',
                area: ['200px', '170px'],
                shadeClose: true, //点击遮罩关闭
                content: '注册成功！点击确定以完善信息'
            });
        });

    });

</script>
</body>
</html>